/**   
* @Title: MetadataUpdateService.java 
* @Package com.medsoft.logpool.core 
* @Description: TODO(用一句话描述该文件做什么) 
* @author zjhua@hundsun.com   
* @date 2016年7月12日 上午9:15:32 
* @version V1.0   
*/ 
package com.medsoft.logpool.core;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author zjhua
 *
 */
@Service
public class OldLogPurgeService implements InitializingBean {
	@Autowired
	private OldLogPurgeDAO oldLogPurgeDAO;
	
	public void purgeOldLog() {
		oldLogPurgeDAO.deleteOldLogs();
	}

	/* (non-Javadoc)
	 * @see org.springframework.beans.factory.InitializingBean#afterPropertiesSet()
	 */
	@Override
	public void afterPropertiesSet() throws Exception {
		oldLogPurgeDAO.deleteOldLogs();
	}
}
